using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class LevelTimer : MonoBehaviour
{
    private Text m_TimerText;
    private float m_Timer;
    void Start()
    {
        m_TimerText = GetComponent<Text>();
    }

    void Update()
    {
        m_Timer += Time.deltaTime;
        if(Time.frameCount % 20 == 0)
        {
            m_TimerText.text = ((int)m_Timer).ToString();
        }
    }
}
